package Demo06;

import java.util.ArrayList;

public class Demo06ArrayListMethod {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        System.out.println(list);
        list.add("何周华");
        list.add("很");
        list.add("爱");
        list.add("很");
        list.add("爱");
        list.add("刘焮");
        System.out.println(list);
        String name = list.get(1);
        System.out.println(name);
        String s = list.get(2);
        System.out.println(s);
        String whoremove = list.remove(3);
        System.out.println(whoremove);
        String m = list.remove(3);
        System.out.println(m);
        System.out.println(list);

    }
}
